/**
 *  (c)
 *
 *
 *
 *
 */

package com.nn.smart.bus.feign.fallback;

import com.nn.smart.bus.commons.tools.utils.Result;
import com.nn.smart.bus.dto.UploadDTO;
import com.nn.smart.bus.feign.OssFeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * OSS Fallback
 *
 * @author Mark sunlightcs@gmail.c om
 * @since 1.0.0
 */
@Component
public class OssFeignClientFallback implements OssFeignClient {

    @Override
    public Result<UploadDTO> upload(MultipartFile file) {
        return new Result<UploadDTO>().error();
    }
}
